import common from "../common";
import constants from "../constants";

const sysGroupPersonApi = {
    excelExportTemplateName: 'SysGroupPersonApi.xlsx',
    findSysGroupTree: (data, success, error) => {
        return common.requestData(constants.API_FindSysGroupTree, data, success, error);
    },
    findSysGroupTreeAll: (data, success, error) => {
        return common.requestData(constants.API_FindSysGroupTreeAll, data, success, error);
    },
    saveSysGroup: (data, success, error) => {
        return common.requestData(constants.API_SaveSysGroup, data, success, error);
    },
    deleteSysGroup: (data, success, error) => {
        return common.requestData(constants.API_DeleteSysGroup, data, success, error);
    },
    findSysGroupPersons: (data, success, error) => {
        return common.requestData(constants.API_FindSysGroupPersons, data, success, error);
    },
    saveSysGroupPerson: (data, success, error) => {
        return common.requestData(constants.API_SaveSysGroupPerson, data, success, error);
    },
    deleteSysGroupPerson: (data, success, error) => {
        return common.requestData(constants.API_DeleteSysGroupPerson, data, success, error);
    },
    batchDeleteSysGroupPerson: (data, success, error) => {
        return common.requestData(constants.API_BatchDeleteSysGroupPerson, data, success, error);
    },
};

export default sysGroupPersonApi;
